package org.gen.pojo.config;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhuge on 2017/10/11.
 */
public abstract class GenConfig {
    public static String jdbcurl = "jdbc:mysql://127.0.0.1:3306/pinyougoudb";
    public static String driverClassName = "com.mysql.jdbc.Driver";
    public static String username = "root";
    public static String password = "123456";
    public static String packageName = "com.pinyougou.pojo";
    public static String mapperPackageName = "com.pinyougou.mapper";
    public static String serviceInterfacePackageName="com.pinyougou.sellergoods.service";
    public static String controllerPackageName="com.pinyougou.manager.controller";
    public static String jsControllerPackageName="com.pinyougou.js.controller";
    public static String jsServicePackageName="com.pinyougou.js.service";
    public static String pojoHtmlPackageName="com.pinyougou.html";


    public static Map configPersonal() {
        Map<String, Object> root = new HashMap<String, Object>();
        root.put("packageName", GenConfig.packageName);
        //java类的 package ...
        root.put("controllerPackageName", GenConfig.controllerPackageName);
        root.put("serviceInterfacePackageName", GenConfig.serviceInterfacePackageName);
        root.put("mapperPackageName", GenConfig.mapperPackageName);
        root.put("author", "zhuliangcai");
        root.put("email", "zhuliangcai@itcast.cn");
        root.put("date", new Date());
        return root;
    }

}
